import 'package:car_map/page/res/gaps.dart';
import 'package:car_map/widget/load_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

///咖啡周边潮品
class WidgetTideGoods extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
      height: ScreenUtil().setHeight(300.0),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: <Widget>[
          Container(
            height: ScreenUtil().setHeight(300.0),
            width: ScreenUtil().setWidth(400.0),
            child: ClipRRect(
              borderRadius: BorderRadius.all(Radius.circular(8.0)),
              child: LoadImage(
                'https://s2.luckincoffeecdn.com/luckywebrm/images/pimg/tea/product/product_wheel_snack_main.jpg',
                fit: BoxFit.cover,
              ),
            ),
          ),
          Column(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: <Widget>[
              Container(
                width: ScreenUtil().setWidth(290),
                height: ScreenUtil().setHeight(145),
                child: ClipRRect(
                  borderRadius: BorderRadius.all(Radius.circular(8.0)),
                  child: LoadImage(
                    'https://s2.luckincoffeecdn.com/luckywebrm/images/pimg/tea/product/product_wheel_snack_2.jpg',
                    fit: BoxFit.cover,
                  ),
                ),
              ),
              Gaps.vGap4,
              Container(
                height: ScreenUtil().setHeight(145),
                width: ScreenUtil().setWidth(290),
                child: ClipRRect(
                  borderRadius: BorderRadius.all(Radius.circular(8.0)),
                  child: LoadImage(
                    'https://s2.luckincoffeecdn.com/luckywebrm/images/pimg/tea/product/product_wheel_snack_3.jpg',
                    fit: BoxFit.cover,
                  ),
                ),
              )
            ],
          )
        ],
      ),
    );
  }
}
